/**
 * Copyright 2018
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */

package io.renren.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.Range;

/**
 * 发红包表单
 *
 * @author Mark sunlightcs@gmail.com
 * @since 3.1.0 2018-01-25
 */
@ApiModel(value = "发红包表单")
public class SendPacketForm {

	@ApiModelProperty(value = "房间ID")
	@NotNull(message = "房间ID不能为空")
	private Long roomId;

	@ApiModelProperty(value = "金币数额")
	@NotNull(message = "金币数额不能为空")
	@Min(value = 1, message = "金币数额有误")
	private Double amount;

	@ApiModelProperty(value = "雷点")
	@NotNull(message = "雷点不能为空")
	@Range(min = 0, max = 9, message = "雷点必须是0-9之间的整数")
	private Integer landmine;

	@ApiModelProperty(value = "红包个数")
	@NotNull(message = "红包个数不能为空")
	@Range(min = 1, message = "红包个数有误")
	private Integer packetQty;

	public Long getRoomId() {
		return roomId;
	}

	public void setRoomId(Long roomId) {
		this.roomId = roomId;
	}

	public Double getAmount() {
		return amount;
	}

	public void setAmount(Double amount) {
		this.amount = amount;
	}

	public Integer getLandmine() {
		return landmine;
	}

	public void setLandmine(Integer landmine) {
		this.landmine = landmine;
	}

	public Integer getPacketQty() {
		return packetQty;
	}

	public void setPacketQty(Integer packetQty) {
		this.packetQty = packetQty;
	}
}
